//------------------------------------------------------------------------------
// <copyright file="DependencyObjectExtension.cs" company="Damian Antonowicz">
//       copyright © 2010 Damian Antonowicz
// </copyright>
// <author>Damian Antonowicz</author>
// <email>poczta@damianantonowicz.pl</email>
//------------------------------------------------------------------------------

using System.ComponentModel;
using System.Windows;

namespace DAnton.Utilities.Extensions
{
    public static class DependencyObjectExtension
    {
        public static bool IsInDesignMode(this DependencyObject control)
        {
            return DesignerProperties.GetIsInDesignMode(control);
        }
    }
}
